package javabase.singleton;

public final class BestSingleton {
	
	private static BestSingleton bestSingleton;
	
	private BestSingleton() {
		
	}
	public static class SingletonHolder {
		public final static BestSingleton singleton = new BestSingleton();
	}
	public static BestSingleton getSingleton() {
		if (bestSingleton == null) {
			bestSingleton = SingletonHolder.singleton;
		}
		return bestSingleton;
	}
}
